package com.imooc.sell.expection;

import com.imooc.sell.enums.ErrorEnum;
import lombok.Data;

@Data
public class SellExpection extends RuntimeException {
    private Integer code;

    public SellExpection(ErrorEnum error) {
        super(error.getMsg());
        this.code = error.getCode();
    }
}
